<?php

Class Session {

	public static function setSession() {
		if (!isset($_SESSION)) {
			session_start();
		}
	}
	
	public static function setKey($key, $value) {
		$_SESSION[$key] = $value;
	}
	
	public static function unsetKey($key) {
		unset($_SESSION[$key]);
	}
	
	public static function getKey($key) {
		return $_SESSION[$key];
	}
	
	public static function IsKey($key) {
		if (isset($_SESSION[$key])) {
			return true;
		}
		else {
			return false;
		}
	}

}

?>